<?php include "../config.php";?>
<?php
session_start();
?>
<!--/*验证码的session开始，如果不放在前面，有的服务器会出现警告*/-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="css/index.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="js/viewport.js"></script>


</head>

<body>

<div id="width_height">

<div id="help" onclick="help()"><img src="images/help_logo.png"/>帮助</div>

    <div class="gate_content">
<div id="logo">
<img src="images/logo_m.png" >
<h5>重置密码</h5>
</div>

<div id="content_form">
<form id="registerform" name="registerform" method="post" action="" enctype="multipart/form-data">
    <ul>
        <li><label class="icon_1"></label>
            <input type="text" name="account" alt="账号" value="<? echo $_REQUEST['account'] ?>"  placeholder="账号"/>
        </li>
        <li><label class="icon_1"></label>
            <input type="text" name="email" alt="邮箱验证码"  value="<? echo $_REQUEST['email'] ?>" placeholder="邮箱"/>
        </li>

        <li>
            <input type="text" name="code" id="code" style="float: left;width: 150px;;" alt="验证码"/>

            <img src="../application/verify/z_imgcode.php"
                 onclick='this.src="../application/verify/z_imgcode.php?"+Math.random();'
                 style="cursor:pointer;height: 50px;width: 150px;">
        </li>
        <?php
        if (isset($_REQUEST['code'])) {
            if ($_REQUEST['code'] == strtolower($_SESSION['yzm'])) {
                echo "
		<script type='text/javascript'>
		document.getElementById('registerform').action = 'resetpass_send_function.php';
        document.getElementById('registerform').submit();
		</script>";
            } else {
                echo '<script type="text/javascript"> alert("请输入正确的验证码！");</script>';
            }
        }
        ?>
        <input type="submit" name="submit" id='submit' value="发送邮箱验证码"/>

    </ul>

</form>


</div>
    </div>
</div>

<canvas id="Mycanvas"></canvas>
<script type="text/javascript" src="js/index_animation.js"></script>
</body>
</html>